package com.tsinjie.metadata.java.model.hibernate;

import com.tsinjie.metadata.java.model.JavaField;

/**
 * Created by LiuXunming on 2015-10-14.
 * 一对多
 */
public class OneToMany extends JavaField {
    /**
     * 多端对应属性名
     */
    private String mappedBy;

    public String getMappedBy() {
        return mappedBy;
    }

    public void setMappedBy(String mappedBy) {
        this.mappedBy = mappedBy;
    }

    @Override
    public String toString() {
        return "OneToMany{" +
                "name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", type='" + type + '\'' +
                ", jdbcType='" + jdbcType + '\'' +
                ", fieldName='" + fieldName + '\'' +
                ", length=" + length +
                ", nullable=" + nullable +
                ", defaultValue=" + defaultValue +
                ", htmlShowType='" + htmlShowType + '\'' +
                ", javaFieldValues=" + javaFieldValues +
                ", mappedBy='" + mappedBy + '\'' +
                '}';
    }
}